<?php

class RunTimeWorkflowStartNode extends AbstractRunTimeWorkflowNode
{

  protected function doDeliver ()
  {
    $this->workflow->handleWorkItemDelivered($this);
    $this->complete();
  }

  protected function doExecute ($action = null)
  {
    throw new Exception();
  }

  protected function doComplete ()
  {
    $this->workflow->handleWorkItemCompleted($this);
    $this->deliverFirstOutNode();
  }
}